package package06章_面向对象编程_基础._07encapsulation封装性.exer3;/**
 * ClassName: Employee
 * Package: package06章_面向对象编程_基础._07encapsulation封装性.exer3
 * Description:
 *
 * @Author lys
 * @Create 2024/2/16 21:25
 * @Version 1.0
 */

/**
 * @author lys
 * @version 1.0
 * @description: TODO
 * @date 2024/2/16 21:25
 */
public class Employee {
    //属性
    private String name;
    private char gender;
    private int age;
    private String phoneNumber;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getInfo(){
//        return name + "\t" + gender + "\t" + age + "\t" + phoneNumber;
        return getName() + "\t" + getGender() + "\t" + getAge() + "\t" + getPhoneNumber();
    }
}
